﻿using ScaffoldDemo.Entities;
using ScaffoldSystem.Repositories.Abstract;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ScaffoldSystem.Repositories.Concrete
{
    public class SysUserRepository : ISysUserRepository
    {
        private EFDbContext context;
        public SysUserRepository(EFDbContext context)
        {
            this.context = context;
        }

        public SysUser FindUserById(int userId)
        {
            return context.Users.Where(user => user.Id == userId).FirstOrDefault();
        }
    }
}
